package com.ljm;

import com.ljm.common.constants.LogConstants;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.ljm"})
@EnableAspectJAutoProxy(proxyTargetClass = true)
//@MapperScan(basePackages={"com.ljm.**.mapper*"}) // resource  上述包已经包含该扫描
@EnableCaching
public class LjmWebApplication {

    public static void main(String[] args) {
        LogConstants.intMdc();
        SpringApplication.run(LjmWebApplication.class, args);
    }

}


